<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/platform/user/list" id="searchForm">
		 <div class="row">
			    <div class="col-md-5">
			      <div class="form-group">
			         <label  class="col-md-4 control-label">${_res["systemManage.userLoginName"]}</label>
			         <div class="col-md-8">
			            <input type="text" class="form-control" name="user.l_loginname" placeholder="${_res['systemManage.username']}" value="${paramMap['user.l_loginname']}"/>
			         </div>
			       </div>
			    </div>

				<div class="col-md-5">
			      <div class="form-group">
			         <label  class="col-md-4 control-label">${_res["systemManage.menuStatus"]}</label>
			         <div class="col-md-8">
			          	  <#dict type="select" name="user.f_status"  dictCode="COMMON_STATUS" value="${paramMap['user.f_status']}" />
			         </div>
			       </div>
			    </div>		    
	    </div>
	    

		  
		  <div class="row">
			<div class="col-md-5">
		      <div class="form-group">
		         <label  class="col-md-4 control-label">${_res["systemManage.userEmail"]}</label>
		         <div class="col-md-8">
		          	  <input type="text" class="form-control" name="user.l_email" placeholder="${_res['systemManage.userEmail']}" value="${paramMap['user.l_email']}"/>
		         </div>
		       </div>
		    </div>
	
			<div class="col-md-5">
		      <div class="form-group">
		         <label  class="col-md-4 control-label">${_res["systemManage.telephone"]}</label>
		         <div class="col-md-8">
		          	  <input type="text" class="form-control" name="user.l_phone" placeholder="${_res['systemManage.telephone']}" value="${paramMap['user.l_phone']}"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-2">
			      <div class="form-group">
				      <button type="button" class="btn btn-primary pull-left" onclick="ajaxForm('content','searchForm')">
				      <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
				  </div>
			</div>
	  </div>
	</form>
</div>
<!-- search area end  -->

<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("userAdd")){ %>
		<p><a href="javascript:void(0);" onClick="ajaxContent('/platform/user/add/a');" class="btn btn-primary pull-left">${_res["systemManage.addUser"]}</a><div class="clearfix"></div></p>
	<% } %>
	<table class="table table-bordered table-hover">
	    <thead>
	        <tr>
	            <th>${_res["systemManage.userLoginName"]}</th>
	            <th>${_res["systemManage.userFullName"]}</th>
	            <th>${_res["systemManage.userEmail"]}</th>
	            <th>${_res["systemManage.telephone"]}</th>
	            <th>${_res["systemManage.menuStatus"]}</th>
	            <th>${_res["system.createtime"]}</th>
	            <th>${_res["system.operator"]}</th>
	              </tr>
	    </thead>
	    <tbody>
		    <% for(user in splitPage.list!){ %>
		      <tr >
		            <td>${user.loginname!}</td>
		            <td>${user.fullname!}</td>
		            <td>${user.email!}</td>
		            <td>${user.phone!}</td>
		            <td><#dict type="lable" value='${user.status!}' dictCode="COMMON_STATUS"/></td> 
		            <td>${user.createtime!}</td>
		            <td>
		            	<% if(hasPrivilegeUrl("userView")){ %>
		              	 	<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/user/view/${user.id!}');">${_res["system.view"]}</button>
		              	<% } %>
		              	<% if(hasPrivilegeUrl("userEdit")){ %>
		              	 	<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/user/update/e-${user.id!}')">${_res["system.edit"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("userDelete")){ %>
		               	 	<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/platform/user/delete/${user.id!}')">${_res["system.delete"]}</button>
		              	<% } %>
		              	<% if(hasPrivilegeUrl("userRoelAssign")){ %>
		              	 	<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/userRole/list/${user.id!}')">${_res["systemManage.resignRole"]}</button>
		           		<% } %>
		           		<% if(hasPrivilegeUrl("initPassword")){ %>
		           			<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/user/initPassword/e-${user.id!}')">${_res["systemManage.resetPassword"]}</button>
		         		<% } %>		           		
		            </td>
		      </tr>
		     <% } %> 
	    </tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"  />
	</div>
	<#nav />
</div>


